package com.hsd.znsh.service;

import com.hsd.znsh.entity.Role;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface RoleService extends BaseService {

    long getRoleListTotalPages(Role role);

    List<Role> getRoleList(Role role, Pageable pageable);

    List<Map> getFunctionTree();

    void assignRoleFunction(String functionIds,Integer roleId);

    Role addRole(Role role);

    void deleteRole(Integer id);

}
